Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Cluster.Sharding ActorInitializationException spec #5999

Conversation

Arkatufus
Copy link
Contributor

Add spec to make sure that Cluster.Sharding can survive any transient exceptions thrown from entity constructor and PreStart method

… exceptions thrown from entity constructor and PreStart method

var settings = ClusterShardingSettings.Create(Sys);
var tuning = settings.TuningParameters;
settings = settings.WithTuningParameters(new TuningParameters
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a very bad coding experience. We need to at least add a Copy() method to TuningParameter class so no one should be forced to write this. Or use the record feature in .NET 5.0

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

agree. Can't go record until we drop .NET Standard 2.0 support, which isn't slated until 2.0.

Copy link
Member

@Aaronontheweb Aaronontheweb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM - port this to 1.5 also.

@Aaronontheweb
Copy link
Member

Looks like this test fails under some conditions.

@Aaronontheweb Aaronontheweb self-requested a review June 14, 2022 17:09
Copy link
Member

@Aaronontheweb Aaronontheweb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Have an intermittent test failure.

@Aaronontheweb Aaronontheweb merged commit 5e1b066 into akkadotnet:v1.4 Jun 14, 2022
Aaronontheweb pushed a commit that referenced this pull request Jun 15, 2022
…#6001)

* Add Cluster.Sharding ActorInitializationException spec

* Update API Verify list
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants